<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./template/template_1.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"     
                xmlns:p="http://primefaces.prime.com.tr/ui">
    <ui:define name="content">
        <h:form>
            <table>
                <tr>
                    <td>
                        <p:tree  value="#{mp3LibraryMBean.rootArtiste}" var="node"  
                                 selectionMode="single" selection="#{mp3LibraryMBean.selectedNode}">
                            <p:treeNode>
                                <h:outputText value="#{node.toString()}"/>  
                            </p:treeNode>
                        </p:tree>
                    </td>
                    <td VALIGN="top">
                        <p:commandButton value="Play Selected"
                                         style="margin:20px 0 20px 0;"
                                         action="#{mp3LibraryMBean.treePlayerLoader}"/>
                    </td>
                </tr>
            </table>
        </h:form>
    </ui:define>
</ui:composition>
